<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    
<%@page import="java.util.*, java.sql.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Degree Discipline</title>
</head>
<body>

<% 	
	ResultSet rset = (ResultSet) request.getAttribute("crsDisc");
	Vector<String> majors = new Vector<String>();
	Vector<String> majorsID = new Vector<String>();
	while(rset.next())
	{
		majorsID.add(rset.getString("id"));
		majors.add(rset.getString("name"));
	}
	
	
%>	
	<c:forEach items="${formData}" var="line">
		<c:out value="${line}" /><br>
	</c:forEach>
	<br>
	<br>

	

	Please select your major<br>
	
	<html:form action="/pages/students/FinalizeDegree">
	<%
	for(int i=0; i<majors.size(); i++)
	{ %>
		<input type="radio" name="degreeMajor" value="<%= majors.get(i) %>#<%= majorsID.get(i) %>"/> <%= majors.get(i) %><br>
	<% } %>
	
	<input type="radio" name="degreeMajor" value="other" />Other:<input type="text" name="otherMajor" /><br>
	
	
	Month and Year Degree was awarded (mm/yy)
	<input type="text" name="degreeDate"/><br>
	GPA <input type="text" name="degreeGPA"/><br>
	DegreeType<select name="degreeType">
		<option value="BS">BS</option>
		<option value="MS">MS</option>
		<option value="PHD">PHD</option>
	</select> <br>
	Upload a Transcript <input type="file" name="degreeFile"/>
	<br><input type="submit" value="Click to Submit"/>
	</html:form>
	<html:errors />
	
	
	



<br><br>

</body>
</html>